package com.yichi.device_bean;

/**
 * 电池存储仓
 */
public class BatteryStore {
    private Integer storeNo;//存储仓编号：1-36
    private Integer storeType;//存储仓类型：BatteryStoreType.battery_store_type_
    private Boolean hasBattery;//是否有电池
    private String batteryNo;//电池编号
    private Boolean isDoorOpen;//门是否打开。存/取仓有效
    private BmsParam bmsParam;//电池bms数据信息
    private BmsStatus bmsStatus;//电池bms状态
    private Integer batterySoc;//电池电量
    private Float batteryMileage;//电池行驶里程。需要计算出来
    private Integer lockStatus;//锁定状态。0：默认 1：进队列 2：移动

    public BatteryStore() {

    }

    public BatteryStore(Integer storeNo, Integer storeType) {
        this.storeNo = storeNo;
        this.storeType = storeType;

        this.setHasBattery(false);
        this.setBatteryNo("");
        this.setDoorOpen(false);
        this.setBmsParam(null);
        this.setBmsStatus(null);
        this.setBatteryMileage((float) 0);
        this.setLockStatus(0);
    }

    public Integer getLockStatus() {
        return lockStatus;
    }

    public void setLockStatus(Integer lockStatus) {
        this.lockStatus = lockStatus;
    }

    public Integer getBatterySoc() {
        return batterySoc;
    }

    public void setBatterySoc(Integer batterySoc) {
        this.batterySoc = batterySoc;
    }

    public String getBatteryNo() {
        return batteryNo;
    }

    public void setBatteryNo(String batteryNo) {
        this.batteryNo = batteryNo;
    }

    public Integer getStoreNo() {
        return storeNo;
    }

    public void setStoreNo(Integer storeNo) {
        this.storeNo = storeNo;
    }

    public Integer getStoreType() {
        return storeType;
    }

    public void setStoreType(Integer storeType) {
        this.storeType = storeType;
    }

    public Boolean getHasBattery() {
        return hasBattery;
    }

    public void setHasBattery(Boolean hasBattery) {
        this.hasBattery = hasBattery;
    }

    public Boolean getDoorOpen() {
        return isDoorOpen;
    }

    public void setDoorOpen(Boolean doorOpen) {
        isDoorOpen = doorOpen;
    }

    public BmsParam getBmsParam() {
        return bmsParam;
    }

    public void setBmsParam(BmsParam bmsParam) {
        this.bmsParam = bmsParam;
    }

    public BmsStatus getBmsStatus() {
        return bmsStatus;
    }

    public void setBmsStatus(BmsStatus bmsStatus) {
        this.bmsStatus = bmsStatus;
    }

    public Float getBatteryMileage() {
        return batteryMileage;
    }

    public void setBatteryMileage(Float batteryMileage) {
        this.batteryMileage = batteryMileage;
    }
}
